<div class="span12">

	<h5>Voyageur <?php echo $index + 1 ?></h5>

<?php if(!$passengerCategory): ?>
	<p>Erreur sur le choix d'un passager. Veuillez recommencer</p>
<?php else: ?>

	<fieldset>
<div class="span4">
		<label>Categorie de voyageur</label>
			<input type="text" disabled="disabled" value="<?php echo $passengerCategory->getName(); ?>">
			<input type="hidden" name="passenger_infos[<?php echo $index ?>][category_id]" value="<?php echo $passengerCategory->getId(); ?>"/>
			<div class="control-group">
				<label>Civilit&eacute;</label>
				<select class="span1" name="passenger_infos[<?php echo $index ?>][civility]">
					<option value="">--</option>
					<option value="M">M.</option>
					<option value="MME">Mme.</option>
					<option value="MLLE">Mlle.</option>
				</select>
			</div>
			<div class="control-group">
				<label>Nom de famille</label>

				<input type="text" name="passenger_infos[<?php echo $index ?>][last_name]" class="span4">

			</div>
			<div class="control-group">
				<label>Pr&eacute;nom</label>

				<input type="text" name="passenger_infos[<?php echo $index ?>][first_name]" class="span4">

			</div>
			<div class="control-group">
				<label>Date de naissance</label>

				<select class="span1" name="passenger_infos[<?php echo $index ?>][birthday_day]">
					<option value="">JJ</option>
					<?php for($i=1; $i<=31; $i++){ ?>
					<option value="<?php echo $i ?>"><?php echo ($i<10)? '0'.$i : $i?></option>
					<?php } ?>
				</select>
				<select class="span1" name="passenger_infos[<?php echo $index ?>][birthday_month]">
					<option value="">MM</option>
					<?php for($i=1; $i<=12; $i++){ ?>
					<option value="<?php echo $i ?>"><?php echo ($i<10)? '0'.$i : $i?></option>
					<?php } ?>
				</select>
				<select class="span1" name="passenger_infos[<?php echo $index ?>][birthday_year]">
					<option value="">AAAA</option>
					<?php
					$last_year = date('Y') - $passengerCategory->getAgeMin();

					for($a=$last_year; $a >= $last_year - $passengerCategory->getAgeMax() ; $a=$a-1){ ?>
					<option value="<?php echo $a ?>"><?php echo $a ?></option>
					<?php } ?>
				</select>
			</div>
</div>
<div class="span4">
			<div class="control-group">
				<label>Adresse</label>
				<input type="text" name="passenger_infos[<?php echo $index ?>][address]" class="span4"/>
			</div>
			<div class="control-group">
				<label>Ville</label>
				<input type="text" name="passenger_infos[<?php echo $index ?>][city]" class="span4"/>
			</div>
			<div class="control-group">
				<label>Pays</label>
				<input type="text" name="passenger_infos[<?php echo $index ?>][country]" class="span4"/>
			</div>

			<div class="control-group">
				<label>Pièce d'identité</label>
				<select name="passenger_infos[<?php echo $index ?>][id_type]">
					<option value="">--</option>
					<option value="M">Passeport</option>
					<option value="MME">Carte d'identité</option>
					<option value="MLLE">Autre</option>
				</select>
			</div>

			<div class="control-group">
				<label>Référence pièce d'identité</label>
				<input type="text" name="passenger_infos[<?php echo $index ?>][id_ref]" class="span4"/>
			</div>

			<div class="control-group">
				<label>Informations supplémentaires</label>
				<input type="text" class="optional" name="passenger_infos[<?php echo $index ?>][notes]" class="span4"/>
			</div>

</div>

</fieldset>
		<?php endif ?>
</div>